package com.atguigu.edusta.client;

import com.atguigu.edusta.client.impl.UcenterFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterFeign.class)
public interface UcenterClient {

    //获取每天用户注册数量
    @GetMapping("/ucenter/member/getMemberCount/{day}")
    public int getMemberCount(@PathVariable("day") String day);
}
